import request from "@/utils/request"

// 获取床位列表
export const fetchBedList = (params) => {
  return request.get(`/beds`, { params })
};

// 获取床位统计
export const fetchBedStats = () => {
  return request.get(`/beds/stats`)
};

// 获取床位详情
export const fetchBedDetail = (id) => {
  return request.get(`/beds/${id}`)
};

// 新增床位
export const createBed = (data) => {
  return request.post(`/beds`, data)
};

// 删除床位
export const deleteBed = (id) => {
  return request.delete(`/beds/${id}`)
};